<!DOCTYPE html>
<html>
<include file="Public:header" />


   



<body>
    <script>
        $(function () {

            $(".datepicker-start").datepicker({
                dateFormat: 'yy-mm-dd',
                showButtonPanel: true,

            });

        })
        function trClick(start,end, channel, tag,fee) {
            if (tag == 1) {
                showModalDialog("{:U('small/upinfo_',array('timeStamp'=>time()))}" + "/start/" + start+"/end/"+end + "/channel/" + channel+"/fee/"+fee , "上行详情", "dialogWidth:800px;dialogHeight:600px; dialogLeft:200px;dialogTop:150px;center:yes;help:yes;resizable:yes;status:yes;toolbar=no");
            } else if (tag == 2) {
                showModalDialog("{:U('small/successinfo_',array('timeStamp'=>time()))}" + "/start/" + start+"/end/"+end + "/channel/" + channel+"/fee/"+fee , "上行详情", "dialogWidth:800px;dialogHeight:600px; dialogLeft:200px;dialogTop:150px;center:yes;help:yes;resizable:yes;status:yes;toolbar=no");
            }else if (tag==3){
                showModalDialog("{:U('small/syncinfo_',array('timeStamp'=>time()))}" + "/start/" + start+"/end/"+end +"/channel/" + channel+"/fee/"+fee , "上行详情", "dialogWidth:800px;dialogHeight:600px; dialogLeft:200px;dialogTop:150px;center:yes;help:yes;resizable:yes;status:yes;toolbar=no");

            }else if (tag==4){
                showModalDialog("{:U('small/codeinfo_',array('timeStamp'=>time()))}" + "/start/" + start+"/end/"+end + "/channel/" + channel+"/fee/"+fee , "上行详情", "dialogWidth:800px;dialogHeight:600px; dialogLeft:200px;dialogTop:150px;center:yes;help:yes;resizable:yes;status:yes;toolbar=no");

            }

        }
    </script>
    日期：
    <form action="{:U('small/list_')}">
        开始:<input class="datepicker-start" type="text" name="start" value="{$start}"/>
        结束:<input class="datepicker-start" type="text" name="end" value="{$end}"/><br/>

        <input type="submit" value="统计" class="btn btn-default">

    </form>
    <table class="table table-bordered table-hover definewidth m10">
        <thead>
            <tr>
                <th>日期</th>
                <th>渠道号</th>
                <td>价格</td>
                <th>上行数</th>
                <th>验证码请求数</th>
                <th>验证码请求成功数</th>

                <th>成功数</th>

                <th>同步成功数</th>

                
            </tr>
        </thead>
        <tbody>
            <foreach name="data" item="vo">
                <tr>
                    <td>{$vo.today}</td>
                    <td>{$vo.channel}</td>
                    <td>{$vo.fee}</td>
                    <td onclick="trClick('{$start}','{$end}','{$vo.channel}','1','{$vo.fee}')">{$vo.up_count}</td>
                    <td onclick="trClick('{$start}','{$end}','{$vo.channel}','4','{$vo.fee}')">{$vo.code_count}</td>
                    <td>{$vo.code_success_count}</td>

                    <td onclick="trClick('{$start}','{$end}','{$vo.channel}','2','{$vo.fee}')"> {$vo.success_count}</td>
                    <td onclick="trClick('{$start}','{$end}','{$vo.channel}','3','{$vo.fee}')">{$vo.sync_count}</td>



                </tr>
            </foreach>
        </tbody>
    </table>
    {$page}
</body>

</html>
